package com.wn.factoryUtils;


import com.wn.entity.Person;

public class SecondFactory {
    public static Person doPerson(String national) {
        try {

            return (Person) Class.forName(national).newInstance();


        } catch (Exception e) {
        e.printStackTrace();
    }
        return null;

    }
}
